﻿<%@ Page Language="C#" MasterPageFile="~/admin/master/Admin.Master" AutoEventWireup="true" CodeBehind="CategoryList.aspx.cs" Inherits="ST.Web.admin.CategoryList" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
    <ul>
        <li><a href="CategoryList.aspx" title="栏目列表">栏目列表</a></li>
        <li><a href="CategoryEdit.aspx"  title="编辑栏目">编辑栏目</a></li>
    </ul>
</div>
<div>
    <asp:DataGrid ID="dgList" runat="server" AutoGenerateColumns="false">
    <Columns>
        <asp:BoundColumn DataField="CategoryID" HeaderText="序号" />
        <asp:BoundColumn DataField="CategoryName" HeaderText="分类名称" />
        <asp:TemplateColumn HeaderText="父级分类名称">
            <ItemTemplate>                          
                          
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:BoundColumn DataField="OrderIndex" HeaderText="排序索引" />
        <asp:TemplateColumn HeaderText="编辑">
            <ItemTemplate>
                <%string.Format("<a href='CategoryEdit.aspx?id={0}' title='编辑'>编辑栏目</a>", Eval("CategoryID")); %>
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>
    </asp:DataGrid>
</div>
</asp:Content>
